$.extend($.fn.validatebox.defaults.rules,{
	no:{
		validator:function(value,param){
			return /^\d{18}$|^\d{17}[x,X]{1}$/.test(value);
		},
    message:"请输入正确的身份证号"
	},
	number:{
		validator:function(value,param){
			return /^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]{3,10}$/.test(value);
		},
		message:"只含有汉字、数字、字母、下划线不能以下划线开头和结尾的长度不少于3位，不多于10位"
	},
	equals: {
		 validator: function(value,param){
			 
			 return value == $(param[0]).val();
	},
	 message: '两次密码不一致'
	}
	
})


$(function(){
	$("#clicks").on("click",function(){
		alert($('#username').textbox('getValue'));
	});
	
	
	$('#pageGrid').datagrid({
	    url:'../AdminSearchServlet/pageGatagrid',
	    pagination:true,
	    columns:[[
	        {field:'userid',title:'用户id',width:100},
	        {field:'username',title:'用户名',width:100},
	        {field:'cardid',title:'身份证',width:150},
	        {field:'sex',title:'性别',width:100}, 
	        {field:'province',title:'省份',width:100},
	        {field:'city',title:'城市',width:100},
	        {field:'phonenum',title:'电话号码',width:100}
	        
	        
	    ]]
	});


	
});

